//
// Created by 下次一定 on 2021/9/23.
//
/*
 * 判断回文数
 * */
#include <iostream>

using namespace std;

bool isPalindrome(int x) {
    if(x < 0){
        return false;
    }
    int xx = x;
    int t = 0;

    while(x!=0){
        int digit = x % 10;
        t = t*10 +digit;
        x /= 10;
    }
    return xx == t;
}

int main(){
    cout << isPalindrome(121);
}